LMS | STORE | KOR | ENG
Ƽ [C]
ۼ :  2020-07-20 13:36 ̸ : 
÷ : Altino.zip

 2022 7 8


stop(), Stop() Լ ߰


sensor ü  sensor.CNT ߰,  0.08 īƮ (  0.13 īƮ)C α׷ ϽŴٸ, ٿ޾ Ͻñ ٶϴ.

 

Ƽ C 2021.04.13

 

1

Open(szPort)

Open(), BT(), Bt(), bt(), OPEN()

Altino.h

5

char port[15] = "\\.\COM9";

2

Close()

Close(), close(), CLOSE()

 

3

Go(300,300)

Go(300,300), go(300,300), GO(300,300)

 

4

Steering(1),

Steering2(-127,0),

Steering3(-127)

Steering(-127), steering(-127),

STEERING(-127), -127 ~ 127 θ

 

5

Display('A')

Display('A'), display('A'), DISPLAY('A')

 

6

DisplayLine(0xff,0xff,0xff,x0ff,0xff,0xff,0xff,0xff)

DisplayLine(0xff,0xff,0xff,x0ff,0xff,0xff,0xff,0xff)

displayline(0xff,0xff,0xff,x0ff,0xff,0xff,0xff,0xff)

displayLine(0xff,0xff,0xff,x0ff,0xff,0xff,0xff,0xff)

DISPLAYLINE(0xff,0xff,0xff,x0ff,0xff,0xff,0xff,0xff)

 

7

Sound(37)

Sound(37), sound(37), SOUND(37)

 

8

Light(0xc0ff), Led(0xc0ff)

Light(0xc0ff), light(0xc0ff), LIGHT(0xc0ff)

Led(0xc0ff), led(0xc0ff), LED(0xc0ff)

 

9

Displayon(8,8)

Displayon(8,8), DisplayOn(8,8), displayon(8,8),

DisplayON(8,8), DISPLAYON(8,8)

 

10

Displayoff(8,8)

Displayoff(8,8), DisplayOff(8,8), displayoff(8,8),

DisplayOFF(8,8), DISPLAYOFF(8,8)

 

11

delay(1000)

delay(1000), Delay(1000)

 

12

typedef struct SensorData1 {

int IRSensor[6];

int TorqueSensor[2];

int TemperatureSensor;

int CDSSensor;

int GSensor[3];

int MSensor[3];

int GySensor[3];

int SteeringVar;

int SteeringTorque;

int Battery;

int Remote;

int MTemperature;

}SensorData;

typedef struct SensorData1 {

int CDS;

int IR[7];

int Bat;

int Acc[3];

int Mag[3];

int Gyro[3];

int MCur[2];

int Temp;

int StVar;

int StCur;

int Remote;

int MTemp;

}SensorData;

ª Ǵ ӵ, ڱ ̸

13

data=Sensor(10)

0.05 Ÿ̸

sensor.CDS, sensor.IR[1]

sensor.Bat, sensor.Acc[0]

sensor.Mag[0], sensor.Gyro[0]

ϸ ˴ϴ.

Altino.h 7 ӵ , 50msec ̹Ƿ ǻ 80

#define delay_value 50 // ޴ ð 0.05

14

ܼ 1 IR[0]

ܼ 2 IR[1]

ܼ 3 IR[2]

ܼ 4 IR[3]

ܼ 5 IR[4]

ܼ 6 IR[5]

ܼ 1 IR[1]

ܼ 2 IR[2]

ܼ 3 IR[3]

ܼ 4 IR[4]

ܼ 5 IR[5]

ܼ 6 IR[6]

Ʈ 1~6

۸